package com.baijia.services;

import com.baijia.dao.po.Passport;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by bjhl on 16/4/25.
 */
public interface PassportService {

    boolean existedUserI18n(String countrySymbol, String countryCode, String mobile, int appId);

    boolean existedUser(String mobile, int appId);

    long createAccount(Passport passport);

    int synData(Passport passport);

    int updatePwd(Long passportId, String newPwd);

    Passport getById(Long id);

    int updatePwdByMobile(String password, String mobile);

    boolean updateMobile(String mobile, Long passportId);

    int createUser(Passport passport, HttpServletRequest request);

    boolean changeMobileVerify(HttpServletRequest request);

    List<Map<String, Object>> getBankCardInfo(HttpServletRequest request);
}
